public class test {
    public static int max2(int a,int b){
        if(a>b)
        {
            return a;
        }
        else
            return b;
    }
    public static int max3(int a,int b,int c){
      if(max2(a,b)>c){
          return max2(a,b);
      }
      else return c;
    }

    public static void main(String[] args) {
        System.out.println(max2(15,6));
        System.out.println(max3(20,30,45));
    }
}
